package com.qfjy.homework.liuyangyang;

/**
 * @author : LY
 * @version ：1.0
 * @date : 2022/11/10 19:57
 */
public class ShapeFacade {
    //各子系统
    private Shape Demo;
    private Shape Demo2;
    private Shape Demo3;


    //创建一个外观类，隐藏系统的复杂性

    public ShapeFacade(){
        Demo = new Demo();
        Demo2 = new Demo2();
        Demo3 = new Demo3();
    }

    //对外统一包装方法
    public void drawDemo(){Demo.draw();}
    public void drawDemo2(){Demo2.draw();}
    public void drawDemo3(){Demo3.draw();}

}
